package com.liu.service;


import com.liu.error.BusinessException;

public interface StockService {

    /**
     * 库存扣减
     */
    boolean decreaseStock(Long goodsId, Integer amount) throws BusinessException;

    /**
     * 库存回补
     */
    boolean increaseStock(Long goodsId, Integer amount) throws BusinessException;

}
